import { useLocalStorage as f } from '@vueuse/core'
import { safeJsonParse } from '@/utils/safeJson'

const id = safeJsonParse(f('User', '').value)?.value?.id || ''

export const useLocalStorage = (key: string, deault: string) => {
    return f(key + id, deault)
}
